using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
namespace 纺织贸易管理系统
{
    public static class MadanPictureService
    {
        public static List<MadanPicture> GetMadanPicturelst(Expression<Func<MadanPicture, bool>> func)
         {
            return  Connect.CreatConnect().Query<MadanPicture>(func);
         }
        public static MadanPicture GetOneMadanPicture(Expression<Func<MadanPicture, bool>> func)
         {
            return  Connect.CreatConnect().QueryOneResult<MadanPicture>(func);
         }
        public static void InsertMadanPicturelst(List<MadanPicture> MadanPictureObjs)
         {
            Connect.CreatConnect().Insert<MadanPicture>(MadanPictureObjs);
         }
        public static void InsertMadanPicture(MadanPicture MadanPictureObj)
         {
            Connect.CreatConnect().Insert(MadanPictureObj);
         }
        public static void UpdateMadanPicture(MadanPicture MadanPictureObj,Expression<Func<MadanPicture, bool>> func)
         {
              Connect.CreatConnect().Update<MadanPicture>(MadanPictureObj, func);
         }
        public static void DeleteMadanPicture(Expression<Func<MadanPicture, bool>> func)
         {
              Connect.CreatConnect().Delete<MadanPicture>(func);
         }
    }
}
